На локалке все норм отрабатывало
GRANT SELECT ON mydb.mytbl1 TO 'someuser'@'somehost';
GRANT ALL ON mydb.mytbl2 TO 'someuser'@'somehost';
GRANT ALL ON mydb.mytbl3 TO 'someuser'@'somehost';
GRANT ALL ON mydb.mytbl4 TO 'someuser'@'somehost';
MyActiveRecord::findAll(new Expression('DATE(time) = :current_date', [':current_date' => date('Y-m-d')]));
header('Location: /index.php');
function isOverlapped($dateRange1, $dateRange2)
{
return (
$dateRange1['start'] >= $dateRange2['start']
&& $dateRange1['start'] <= $dateRange2['end']
||
$dateRange1['end'] >= $dateRange2['start']
&& $dateRange1['end'] <= $dateRange2['end']
);
}